package com.cp.service;

import com.cp.repository.Conviction;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@CacheConfig(cacheNames = "convictionCache")
public interface ConvictionService {

	@Cacheable
	List<Map> getConviction();

	@Cacheable
	List<Conviction> getAll();

}
